import React from 'react';
import ReactDOM from 'react-dom';
import App from './App'
import { AppContainer } from 'react-hot-loader';
import 'babel-polyfill';
import './styles/index.less'

ReactDOM.render((<AppContainer><App /></AppContainer>), document.getElementById('app'));

if (module.hot) {
  module.hot.accept('./App', () => {
    const App = require('./App').default;
    ReactDOM.render((<AppContainer><App /></AppContainer>), document.getElementById('app'));
  })
} 